import request from '../../../public/utils/request';

export default {
    /**
     * 查询单据列表
     * @param {Object} data
     * @returns {Promise}
     */
    getBillList(data) {
        return request('/nccloud/erm/expenseaccount/HKListQueryAction.do', { data });
    },
    /**
     * 查询单据跳转数据
     * @param {Object} data
     * @returns {Promise}
     */
    getBillLinkInfo(data) {
        return request('/nccloud/erm/pub/AppInfoQueryAction.do', { data });
    },
    /**
     * 删除单据
     * @param {Object} data
     * @returns {Promise}
     */
    deleteBill(data) {
        return request('/nccloud/erm/billmanage/BillDeleteAction.do', { data });
    },
    /**
     * 提交单据
     * @param {Object} data
     * @returns {Promise}
     */
    submitBill(data) {
        return request('/nccloud/erm/billmanage/BillSubmitAction.do', { data });
    },
    /**
     * 收回单据
     * @param {Object} data
     * @returns {Promise}
     */
    retrieveBill(data) {
        return request('/nccloud/erm/billmanage/BillRecallAction.do', { data });
    },
    /**
     * 交易类型查询
     * @param {Object} data
     * @returns {Promise}
     */
    getTradeType(data) {
        return request('/nccloud/erm/billmanage/UserTradeTypeQueryAction.do', { data });
    },
    /**
     * 校验是否可以复制
     * @param {Object} data
     * @returns {Promise}
     */
    checkBillCopyStatus(data) {
        return request('/nccloud/erm/billmanage/BillCopyAction.do', { data });
    }
};
